using System;
using System.Drawing;
using System.Windows.Forms;
class MyForm:Form
{
	Button btn;
	Button btn2;
	static void Main()
	{
		Application.Run(new MyForm());
	}
	public MyForm()
	{
		MaximizeBox =false;
//		FormBorderStyle=FormBorderStyle.Fixed3D;
//		this.FormBorderStyle = FormBorderStyle.None;
		this.MaximizeBox = false;
		this.MinimizeBox = false;
		this.StartPosition = FormStartPosition.CenterScreen;
		// Remove the control box so the form will only display client area.
//		this.ControlBox = false;


		btn=new Button();
		btn.Parent=this;
		btn.Text="Click Me";
		btn.FlatStyle=FlatStyle.Flat;
		btn.Location=new Point(100,100);
//		btn.BackColor=Color.Red;
		btn.Click +=new EventHandler(btn_Click);
		btn.KeyDown+=new KeyEventHandler(btn_KeyDown);

		btn2=new Button();
		btn2.Location=new Point(140,140);
		btn2.Parent=this;
		btn2.Text="Button2";
		
		btn2.KeyDown+=new KeyEventHandler(btn2_KeyDown);
	}

	private void btn_Click(object sender, EventArgs e)
	{
		Button btn=(Button)sender;
		Graphics g=btn.CreateGraphics();
		Point pt=Point.Empty;
//		System.Threading.Thread.Sleep(40);
		g.FillEllipse(Brushes.Red,0,0,btn.ClientSize.Width,btn.ClientSize.Height);


		//MessageBox.Show("What you are doing !");
	}

	private void btn_KeyDown(object sender, KeyEventArgs e)
	{
		btn2.Enabled=false;
		MessageBox.Show("Hello ,World!");
		
	}

	private void btn2_KeyDown(object sender, KeyEventArgs e)
	{
		MessageBox.Show("Btn2 is keydown!");
	}
}